package com.fary.converters;

import org.springframework.format.datetime.DateFormatter;
import org.springframework.format.support.FormattingConversionService;

import java.util.Date;

public class TestFormatter {

    public static void main(String[] args) {
        FormattingConversionService formattingConversionService = new FormattingConversionService();

        formattingConversionService.addFormatter(new DateFormatter());

        Date convert = formattingConversionService.convert("2012-12-12", Date.class);
    }
}
